<template>
	<view>
		<!-- 提示窗示例 -->
		<uni-popup ref="alertDialog" type="dialog">
			<uni-popup-dialog :type="dialogInfo.msgType" :cancelText="dialogInfo.cancelText"
				:confirmText="dialogInfo.confirmText" :title="dialogInfo.title" :content="dialogInfo.content"
				:cancel="dialogInfo.cancel" :confirm="dialogInfo.confirm" @confirm="_dialogConfirm"
				@close="_dialogClose">
			</uni-popup-dialog>
		</uni-popup>
	</view>
</template>


<script>
	import * as systemJs from '../../common/system.js'
	export default {
		name: "customerDialog",
		props: {
			refd: {
				type: String,
				default: ''
			}
		},
		data() {
			return {
				dialogInfo: {
					msgType: '',
					title: '',
					content: '',
					confirmText: '',
					cancelText: '',
					confirm: true,
					cancel: true
				}
			}
		},
		mounted() {
			this.dialogInfo = systemJs.showDialog.dialogInfo
		},
		methods: {
			_dialogConfirm() {
				systemJs.showDialog._dialogConfirm()
			},
			_dialogClose() {
				systemJs.showDialog._dialogClose()
			},
			open(){
				this.$refs.alertDialog.open();
			}
			
		}
	}
</script>

<style>

</style>